﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	XmlRuleMethod.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

namespace Smart.Common.Rules
{
	/// <summary>
	/// Xml Rule Method 
	/// </summary>
	public class XmlRuleMethod
	{
		/// <summary>
		/// Method name
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Method parameters
		/// </summary>
		public string[] Parameters { get; set; }

		/// <summary>
		/// Method contains parenthesis
		/// </summary>
		public bool ContainsParenthesis { get; set; }

		/// <summary>
		/// Initialize new empty XmlRuleMethod
		/// </summary>
		public XmlRuleMethod()
		{
		}

		/// <summary>
		/// Initialize new XmlRuleMethod
		/// </summary>
		/// <param name="name">Method name</param>
		/// <param name="parameters">Method parameters</param>
		public XmlRuleMethod(string name, string[] parameters)
		{
			Name = name;
			Parameters = parameters;
		}
	}
}